package com.hanson.mapper;

import com.hanson.entity.SpreadMoneyBean;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SpreadMoneyBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SpreadMoneyBean record);

    SpreadMoneyBean selectByPrimaryKey(Integer id);

    List<SpreadMoneyBean> selectAll();

    List<SpreadMoneyBean> selectByOrderSeq(@Param("orderSeq") String orderSeq);

    List<SpreadMoneyBean> selectByOpenId(@Param("openId") String openId,@Param("status") Integer status);

    int updateToAccountTime(@Param("date") Date date, @Param("orderSeq") String orderSeq);

    int updateToAccountTimeAndStatus(@Param("date") Date date, @Param("status") Integer status, @Param("orderSeq") String orderSeq);

    int updateByPrimaryKey(SpreadMoneyBean record);
}